<?xml version="1.0" encoding="utf-8" ?>
<DbDataRequest connection="$MediaCacheDBConnection$" type="$MediaCacheDbType$" defaultFormatter="bizobj ImageCacheImage">
  <SqlStatement hasResults="true">
	SELECT Id, Name, Location, Width, Height, AdjustName, CreationDate, Type, Data from Images
	WHERE     (Location = @location) AND (Name = @name) AND 
		((AdjustName is NULL and @adjustName is NULL) OR (AdjustName = @adjustName))
  </SqlStatement>
  <Param name="location" type="VarChar"/>
  <Param name="name" type="VarChar"/>
  <Param name="adjustName" type="VarChar"/>
</DbDataRequest>
